Google Closure Library snippets
Sublime 2 snippets for the Google Closure Library
Labels snippets
Details
Installs
- Total 5K
- Win 3K
- Mac 1K
- Linux 721
| Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | Oct 6 | Oct 5 | Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Google Closure Library Snippets
Sublime plugin with snippets for the Google Closure Library
Install
Install with Package Control. Search for: Google Closure Library Snippets.
Getting started
Just type cl on a javascript document and work with autocomplete.
The snippets are namespaced based on functionality, at most you'll have to type 4 chars and Enter:
| snippet | Category | Description |
|---|---|---|
| clareach | Arrays | goog.array.forEach() |
| clevlisten | Events | Event listener (goog.event.listen()) |
| clevdispatch | Events | Dispatch an event, verbose version |
| clevcb | Events | Callback function declaration for events, including block docs |
| cldispose | Generic | dispose internal declaration (.disposeInternal = function()) |
| clfn | Generic | Default function declaration with a logger |
| clsingle | Generic | Singleton declaration (goog.addSingletonGetter()) |
| cltypedef | Generic | A very verbose type definition with weird annotation cases |
| clenum | Generic | Enum declaration |
| clprov | Generic | goog.provide(); |
| clreq | Generic | goog.require(); |
| clclassev | New files | New class boilerplate with events inheritance |
| clobjeach | Objects | goog.object.forEach() |
Contributing
I am using this package as a helper for my workflow with Closure Library, feel free to do the same by submitting snippets that you use in yours.